﻿// ******************************************************************
// * Copyright(c)  Steven Lu
// * Description   : Entity_SEC_TOOLBAR
// * CreateDate    : 2011/8/4 15:01:05
// * Creater       : CodeSmith
// * LastChangeDate: 2011/8/4 15:01:05
// * LastChanger   : 2011/8/4 15:01:05
// * Version Info  : 1.0 For ESOL
// ******************************************************************

using System;
using System.Data;
using System.Collections.Generic;
using System.Text;
using Suzsoft.Smart.EntityCore;
using ESOL.Common.Schema;

namespace ESOL.Common.Entity
{
    [Serializable]
    public partial class SecToolbarEntity : EntityBase
    {
        public SecToolbarTable TableSchema
        {
            get
            {
                return SecToolbarTable.Current;
            }
        }

        public SecToolbarEntity()
        {

        }

        public SecToolbarEntity(DataRow dr)
        {
            if (dr == null)
            {
                return;
            }
            this.MainMenu = Convert.ToString(CommonFunctions.ToObject(dr["MAIN_MENU"]));
            this.ToolbarMenu = Convert.ToString(CommonFunctions.ToObject(dr["TOOLBAR_MENU"]));
        }

        public override TableInfo OringTableSchema
        {
            get
            {
                return SecToolbarTable.Current;
            }
        }

        #region Perporty List
        public string MainMenu
        {
            get { return Convert.ToString(GetData(SecToolbarTable.C_MAIN_MENU)); }
            set { SetData(SecToolbarTable.C_MAIN_MENU, value); }
        }

        public string ToolbarMenu
        {
            get { return Convert.ToString(GetData(SecToolbarTable.C_TOOLBAR_MENU)); }
            set { SetData(SecToolbarTable.C_TOOLBAR_MENU, value); }
        }

        #endregion

        #region Object Perporty
        public SecMenuEntity mMainMenuEntity;
        public SecMenuEntity MainMenuEntity
        {
            get { return mMainMenuEntity; }
            set { mMainMenuEntity = value; }
        }
        public SecMenuEntity mToolbarMenuEntity;
        public SecMenuEntity ToolbarMenuEntity
        {
            get { return mToolbarMenuEntity; }
            set { mToolbarMenuEntity = value; }
        }
        #endregion
    }


}

